#include "BrakeBonus.h"
#include "Stage.h"

BrakeBonus::BrakeBonus() {

	this->setTexture((Texture*)DaoFactory::getInstance()->getDao("Texture")->find("safari"));
	/*Sacar el dao de aki*/
	this->setRadius(15);
	this->setLineColor(new Color("255","255","255"));
	this->setSurface(SketcherHelper::getInstance()->createCircleSurface(this->getRadius(),this->getTexture(),this->getLineColor()));
	this->setId("BrakeBonus");
}

BrakeBonus::~BrakeBonus() {
}

void BrakeBonus::doMagic(void* stage){
	((Stage*) stage)->modifyVelocityPercentage(-1);

}

void BrakeBonus::undoMagic(void* stage){
	((Stage*) stage)->modifyVelocityPercentage(+1);
}
